<?php

require_once 'standard-re/Type/Test_Types/scalar.Integer.php';

class re_Test_Even_Integer extends re_Test_Integer
{
	
	public function constraint(/*re_Type_Abstract*/ $proposedV, /*re_Type_Abstract*/ $currentV){
		//return $value->_getValue() % 2 == 0;
		
		return $proposedV->thedecimal % 2 == 0; 
	}
	
	/*
	static public function value($possRepArgsList = array(), $possRepName = self::DEFAULT_SELECTOR_NAME, array $options = array()){
		//return parent::_value($possRepArgsList, $possRepName, $options, __CLASS__);
		return new self(array('values'=>$possRepArgsList, 'possRep'=>$possRepName));
	}

	static public function variable($initialValue = FALSE, array $options = array()){
		return parent::_variable($initialValue, $options, __CLASS__);
	}
	
	static public function value($possRepArgsList = array(), $possRepName = self::DEFAULT_SELECTOR_NAME, array $options = array()){
		//return parent::_value($possRepArgsList, $possRepName, $options, __CLASS__);
		return new self(array('values'=>$possRepArgsList, 'possRep'=>$possRepName));
	}
	
	static public function variable($initialValue = FALSE, array $options = array()){
		return parent::_variable($initialValue, $options, __CLASS__);
	}
	*/
}
